
const cart = {
  state: {
    details: []
  },

  getters: {
    getDetails: state => state.details
  },

  mutations: {
    setDetails (state, data) {
      state.details = data
    }
  },

  actions: {
    fetchDetails ({ commit }, products) {
      commit('setDetails', products)
    }
    
  }
}

export default cart
